package org.meetunexpectedly.authority;

import org.meetunexpectedly.authority.verify.DefaultAuthorityVerify;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description: 授权注解，不需要校验的请求不用加注解即可
 * @Author: pupil
 * @Date: 2024/09/03 下午 5:37
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Authority {
    // 权限标识
    String[] value();

    // 具体执行校验类
    Class verify() default DefaultAuthorityVerify.class;
}
